package io.renren.modules.app.service.impl;

import io.renren.modules.app.entity.BannerEntity;
import io.renren.modules.app.service.BannerService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author limeng
 * @time 2018/11/1
 */
@Service
public class BannerServiceImpl implements BannerService {

    @Override
    public int delete(BannerEntity bannerEntity) {
        return 0;
    }

    @Override
    public void insert(BannerEntity bannerEntity) {

    }

    @Override
    public List<BannerEntity> seleteList() {
        List<BannerEntity> list =new ArrayList<>();
        BannerEntity bannerEntity = new BannerEntity();
        bannerEntity.setTitle("艺术中心");
        bannerEntity.setKey("cs_wyyc");
        bannerEntity.setAndroidImg("http://m.mynj.cn:12002/znmh_FEP/loadpic.jsp?path=/znmh_files/znmh_chinaso/cs_banner1/20180828-1.jpg");
        bannerEntity.setIosImg("http://m.mynj.cn:12002/znmh_FEP/loadpic.jsp?path=/znmh_files/znmh_chinaso/cs_banner1/20180828-1.jpg");

        BannerEntity bannerEntity1 = new BannerEntity();
        bannerEntity1.setTitle("志愿者招募");
        bannerEntity1.setKey("cs_qnyyj");
        bannerEntity1.setAndroidImg("http://m.mynj.cn:12002/znmh_FEP/loadpic.jsp?path=/znmh_files/znmh_chinaso/cs_banner1/20180828-1.jpg");
        bannerEntity1.setIosImg("http://m.mynj.cn:12002/znmh_FEP/loadpic.jsp?path=/znmh_files/znmh_chinaso/cs_banner1/20180828-1.jpg");

        BannerEntity bannerEntity2 = new BannerEntity();
        bannerEntity2.setTitle("举荐委员联系方式");
        bannerEntity2.setKey("cs_gjaqy");
        bannerEntity2.setAndroidImg("http://m.mynj.cn:12002/znmh_FEP/loadpic.jsp?path=/znmh_files/znmh_chinaso/cs_banner1/20180828-1.jpg");
        bannerEntity2.setIosImg("http://m.mynj.cn:12002/znmh_FEP/loadpic.jsp?path=/znmh_files/znmh_chinaso/cs_banner1/20180828-1.jpg");

        BannerEntity bannerEntity3 = new BannerEntity();
        bannerEntity3.setTitle("免费游商洛");
        bannerEntity3.setKey("cs_banner10086");
        bannerEntity3.setAndroidImg("http://m.mynj.cn:12002/znmh_FEP/loadpic.jsp?path=/znmh_files/znmh_chinaso/cs_banner1/20180828-1.jpg");
        bannerEntity3.setIosImg("http://m.mynj.cn:12002/znmh_FEP/loadpic.jsp?path=/znmh_files/znmh_chinaso/cs_banner1/20180828-1.jpg");

        BannerEntity bannerEntity4 = new BannerEntity();
        bannerEntity4.setTitle("高级人才交流洽谈");
        bannerEntity4.setKey("cs_banner12");
        bannerEntity4.setAndroidImg("http://m.mynj.cn:12002/znmh_FEP/loadpic.jsp?path=/znmh_files/znmh_chinaso/cs_banner1/20180828-1.jpg");
        bannerEntity4.setIosImg("http://m.mynj.cn:12002/znmh_FEP/loadpic.jsp?path=/znmh_files/znmh_chinaso/cs_banner1/20180828-1.jpg");


        list.add(bannerEntity);
        list.add(bannerEntity1);
        list.add(bannerEntity2);
        list.add(bannerEntity3);
        list.add(bannerEntity4);

        return list;
    }

    @Override
    public void update(BannerEntity bannerEntity) {

    }
}
